﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Composite.Modularity;
using Microsoft.Practices.Composite.Regions;

namespace ViewExpensesModule
{
    public class ViewExpensesModule : IModule
    {
        #region Constructors

        public ViewExpensesModule(IRegionManager regionManager)
        {
            this.regionManager = regionManager;    
        }

        #endregion

        #region Fields

        private readonly IRegionManager regionManager;

        #endregion

        #region IModule Members

        public void Initialize()
        {
            regionManager.RegisterViewWithRegion("MainRegion", typeof(Views.ExpensesView));
        }

        #endregion
    }
}
